#ifndef MY_DB_H
#define MY_DB_H

#include "common.h"
#include <variant>
/*C++ 17通用容器*/
using ValueType = std::variant<int, float,double,string>;

typedef struct
{
    /*字段下最多1000个数据*/
    string name;
    string type;
    vector<ValueType> values;
}column;
typedef struct
{
    string name;
    /*最多10个字段*/
    vector<column> columns;
}table;
typedef struct 
{
    string name;
    vector<table> tables;
}db;
extern vector<db> database;
string to_string(const ValueType& value);

#endif


